from django.db import models
from datetime import date, datetime
# Create your models here.
from django.contrib import admin

class MyUser(models.Model):
    username=models.CharField(max_length=16)
    password=models.CharField(max_length=32)
    logindate=models.DateTimeField(default=datetime.now)  #auto_now_add=True,  , auto_now=True
    times=models.IntegerField(default=0)

    class Meta:
        db_table = 'MyUser'

admin.site.register(MyUser)